package com.gupao.jly521.strategy.entity;

import com.gupao.jly521.strategy.PayType;
import com.gupao.jly521.strategy.PayState;

/**
 * @author Jly
 * @date 2018/8/24  14:17
 */
public class Order {

    private String orderId;

    private String amount;

    public Order(){

    }

    public Order(String orderId, String amount) {
        this.orderId = orderId;
        this.amount = amount;
    }

    public PayState pay(PayType payType){
       return payType.get().pay();
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getAmount() {
        return amount;
    }

    public void setAmount(String amount) {
        this.amount = amount;
    }
}
